package User;

import Book.BookList;
import Method.IOperation;

//界面抽象类
public abstract class User {
    protected String name ;
    protected IOperation[] iOperations;

    public abstract int menu();

    public User(String name) {
        this.name = name;
    }

    public void DoWork(int choice, BookList bookList){
        this.iOperations[choice].work(bookList);
    }
}
